require('../css/commCss/normalize.css')
require('../css/commCss/reset.css')
require('../css/commCss/property.css')
require('../lib/flexible')
require('../font/iconfont.css')
require('../css/badge.less')
    //引入axios
const axios = require('axios')

document.addEventListener('DOMContentLoaded', function() {
    /* 获取元素 */
    const badge = document.querySelector('.badge')
    const mask = document.querySelector('.mask')
    console.log(mask);


    badge.addEventListener('click', function(e) {
        if (e.target.classList.contains('img')) {
            mask.style.display = 'block'
        }
    })
})